package com.huaxin.device.dto.request;

import com.huaxin.device.dto.enums.validation.ValidAlarmLevel;
import com.huaxin.device.dto.enums.validation.ValidAlarmType;
import com.huaxin.device.dto.request.base.BasePageReqDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class AlarmThresholdRulePageListReqDTO extends BasePageReqDTO {
    @Schema(description = "是否启用", example = "true")
    private Boolean isEnabled;

    @Schema(description = "报警类型", example = "over_current")
    @ValidAlarmType
    private String alarmType;

    @Schema(description = "报警等级", example = "3")
    @ValidAlarmLevel
    private Integer alarmLevel;

    @Schema(description = "所属模板ID")
    private String templateId;

    @Schema(description = "关键字查询，支持规则描述查询")
    private String keyword;
}
